package com.letao.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import org.apache.struts2.json.annotations.JSON;
/**
 * Goods entity. @author MyEclipse Persistence Tools
 */

public class Goods implements java.io.Serializable {

	// Fields

	private Integer gid;
	private Category category;
	private User user;
	private Double gprice;
	private String gimage;
	private String gname;
	private Integer gnumber;
	private String gaddress;
	private String ginfo;
	private Date gtime;
	private Boolean gshow;
	private Integer gcount;
	private Set goodsImages = new HashSet(0);
	private Set goodsEvaluationImages = new HashSet(0);
	private Set evaluations = new HashSet(0);
	private Set transactions = new HashSet(0);
	private Set userCollections = new HashSet(0);

	// Constructors

	/** default constructor */
	public Goods() {
	}

	/** minimal constructor */
	public Goods(Double gprice, String gname, Integer gnumber, String gaddress,
			Date gtime, Boolean gshow, Integer gcount) {
		this.gprice = gprice;
		this.gname = gname;
		this.gnumber = gnumber;
		this.gaddress = gaddress;
		this.gtime = gtime;
		this.gshow = gshow;
		this.gcount = gcount;
	}

	/** full constructor */
	public Goods(Category category, User user, Double gprice, String gimage,
			String gname, Integer gnumber, String gaddress, String ginfo,
			Date gtime, Boolean gshow, Integer gcount, Set goodsImages,
			Set goodsEvaluationImages, Set evaluations, Set transactions,
			Set userCollections) {
		this.category = category;
		this.user = user;
		this.gprice = gprice;
		this.gimage = gimage;
		this.gname = gname;
		this.gnumber = gnumber;
		this.gaddress = gaddress;
		this.ginfo = ginfo;
		this.gtime = gtime;
		this.gshow = gshow;
		this.gcount = gcount;
		this.goodsImages = goodsImages;
		this.goodsEvaluationImages = goodsEvaluationImages;
		this.evaluations = evaluations;
		this.transactions = transactions;
		this.userCollections = userCollections;
	}

	// Property accessors

	public Integer getGid() {
		return this.gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Double getGprice() {
		return this.gprice;
	}

	public void setGprice(Double gprice) {
		this.gprice = gprice;
	}

	public String getGimage() {
		return this.gimage;
	}

	public void setGimage(String gimage) {
		this.gimage = gimage;
	}

	public String getGname() {
		return this.gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public Integer getGnumber() {
		return this.gnumber;
	}

	public void setGnumber(Integer gnumber) {
		this.gnumber = gnumber;
	}

	public String getGaddress() {
		return this.gaddress;
	}

	public void setGaddress(String gaddress) {
		this.gaddress = gaddress;
	}

	public String getGinfo() {
		return this.ginfo;
	}

	public void setGinfo(String ginfo) {
		this.ginfo = ginfo;
	}

	public Date getGtime() {
		return this.gtime;
	}

	public void setGtime(Date gtime) {
		this.gtime = gtime;
	}

	public Boolean getGshow() {
		return this.gshow;
	}

	public void setGshow(Boolean gshow) {
		this.gshow = gshow;
	}

	public Integer getGcount() {
		return this.gcount;
	}

	public void setGcount(Integer gcount) {
		this.gcount = gcount;
	}
	@JSON(serialize=false)
	public Set getGoodsImages() {
		return this.goodsImages;
	}

	public void setGoodsImages(Set goodsImages) {
		this.goodsImages = goodsImages;
	}
	@JSON(serialize=false)
	public Set getGoodsEvaluationImages() {
		return this.goodsEvaluationImages;
	}

	public void setGoodsEvaluationImages(Set goodsEvaluationImages) {
		this.goodsEvaluationImages = goodsEvaluationImages;
	}
	@JSON(serialize=false)
	public Set getEvaluations() {
		return this.evaluations;
	}

	public void setEvaluations(Set evaluations) {
		this.evaluations = evaluations;
	}
	@JSON(serialize=false)
	public Set getTransactions() {
		return this.transactions;
	}

	public void setTransactions(Set transactions) {
		this.transactions = transactions;
	}
	@JSON(serialize=false)
	public Set getUserCollections() {
		return this.userCollections;
	}

	public void setUserCollections(Set userCollections) {
		this.userCollections = userCollections;
	}

	
}